/*
 * @Descripttion: 圆角图片
 * @version: 
 * @Author: Ray
 * @Date: 2020-05-11 21:18:44
 * @LastEditors: Ray
 * @LastEditTime: 2020-05-11 21:24:19
 */
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/screenutil.dart';

class RoundedNetImage extends StatelessWidget {
  final String url;
  final double width;
  final double height;
  final double radius;

  const RoundedNetImage(this.url,
      {Key key, this.width, this.height, this.radius})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return ClipRRect(
      borderRadius: BorderRadius.all(Radius.circular(this.radius)),
      child: Image.network(url,
          width: ScreenUtil().setWidth(width),
          height: ScreenUtil().setHeight(height)),
    );
  }
}
